package com.example.demo.controller;

import com.example.demo.module.entity.VisitDoctor;
import com.example.demo.service.VisitDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/data/doctor")
public class VisitDoctorController {
    @Autowired
    VisitDoctorService visitDoctorService;
    @GetMapping("/find")
    public List<VisitDoctor> selectAll() throws Exception{
        List<VisitDoctor> list=visitDoctorService.findAll();
        return list;
    }
}
